package com.biz.primus.ms.sms.event;

import com.biz.primus.model.misc.vo.ShortMessageVo;
import com.biz.primus.ms.sms.service.model.ServiceProvider;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author yanweijin
 * @date 2017/5/30
 */
@Getter
public class SendMessageEvent extends ApplicationEvent {

    private static final long serialVersionUID = -1400373643336514734L;
    /**
     * 消息
     */
    private ShortMessageVo shortMessageVo;

    /**
     * 发送这条消息的供应商
     */
    private ServiceProvider provider;

    /**
     * 用于查询送达状态的批次号
     */
    private String batchNumber;

    public SendMessageEvent(Object source, ShortMessageVo shortMessageVo, ServiceProvider provider, String batchNumber) {
        super(source);
        this.shortMessageVo = shortMessageVo;
        this.provider = provider;
        this.batchNumber = batchNumber;
    }

}
